package com.cw.base.common.model.constants;

import com.cw.base.common.model.dto.response.CommonRespDto;

/**
 * @author chenwei
 * @version $$Id: RpcConstant.java, v 0.1 2018/10/27 2:39 PM chenwei Exp $$
 */
public class RpcConstant {

    /** rpc远程调用结果 */
    public static final String RPC_RESULT = "RPC_RESULT";

    /** rpc远程调用返回类型 */
    public static final String RPC_RESPONSE_TYPE = "RPC_RESPONSE_TYPE";

    /** rpc远程调用异常code */
    public static final String RPC_ERROR_CODE = "RPC_ERROR_CODE";

    /** rpc远程调用异常message */
    public static final String RPC_ERROR_MESSAGE = "RPC_ERROR_MESSAGE";

    /** 父幂等流水号 */
    public static final String RPC_PARENT_IDEM_SERIAL_ID = "RPC_PARENT_IDEM_SERIAL_ID";

    /** RPC异常时，是抛异常还是组装为{@link CommonRespDto}，默认抛异常 */
    public static final String RPC_EXCEPTION_THROW_ENABLED = "RPC_EXCEPTION_THROW_ENABLED";
}
